# 打印1000以内水仙花数
'''for sum in range(100,1000):
    a = sum // 100
    b = (sum % 100) // 10
    c = sum % 10
    if sum == a**3 + b**3 + c**3 :
        print(sum)
'''


打印100以内完数
def is_hanshu(num):
    sum = 0
    for i in range(1, num):
        if sum % i == 0:
            sum += i
            return sum == num


for i in range(1, 100):
    if is_hanshu(i):
        print(i)
        break

# # 打印100以内质数
# for i in range(1, 100):
#     a = 0
#     for j in range(1, i):
#         if (i % j == 0):
#             a = 1
#             break
#     if (a == 0):
#         print(i)

# 打印菱形  上面5行，下面4行
# 打印斐波那契数列  输出前50个数字
